/*
 * @Author: Haochen
 * @Date: 2021-12-08 15:38:53
 * @LastEditTime: 2021-12-10 18:30:11
 * @FilePath: \students-system\src\api\modules\classes.js
 */

import axios from 'axios';

export default {
  getClassesBySubId(params) {
    return axios({
      url: '/classes/getClassesBySubjectsId',
      params,
    });
  },

  getClasses(params) {
    return axios({
      url: '/classes/getClasses',
      params,
    });
  },

  addNewClass(data) {
    return axios({
      url: '/classes/addClasses',
      method: 'POST',
      data,
    });
  },

  deleteClass(data) {
    return axios({
      url: '/subjects/deleteSubjects',
      method: 'DELETE',
      data,
    });
  },
};
